﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "playvideo.h"
#include <QPainter>
#include <QImage>
namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
signals:
    void rtspUrlReady();
    void activateRec();
    void deActivateRec();
protected:
    void paintEvent(QPaintEvent *e);

private slots:
    void on_pushButton_clicked();
    void SlotGetOneFrame(QImage img);

private:
    Ui::MainWindow *ui;
    playVideo* m_pPlayVideo;
    QImage       m_image;
};

#endif // MAINWINDOW_H
